package ooday03;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs=new Student("张三",24,"合肥","jsd202302","001");
        zs.eat();
        zs.sleep();
        zs.sayHi();

        Teacher ls=new Teacher("李四",28,"北京",3000);
        ls.eat();
        ls.sleep();
        ls.sayHi();

        Doctor ww=new Doctor("王五",34,"北京","主任");
        ww.eat();
        ww.sleep();
        ww.sayHi();
        Fish fish=new Fish("小金",3,"金色");
        fish.swim();
        fish.eat();
        fish.drink();

    }
}
